import { http } from "../utils/http";

/** 获取产品列表 */
export const getProductPage = params => {
  return http.request("get", "/v1/get_product_page", { params });
};

/** 创建产品 */
export const createProduct = data => {
  return http.request("post", "/v1/create_product", { data });
};

/** 获取产品列表 */
export const getProductList = () => {
  return http.request("get", "/v1/get_product_list");
};

/** 删除产品 */
export const delProduct = data => {
  return http.request("post", "/v1/del_product", { data });
};

/** 修改产品 */
export const modifyProduct = data => {
  return http.request("post", "/v1/modify_product", { data });
};
